 import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            component: resolve => require(['../pages/home/home.vue'], resolve),
            children:[
                {
                    path: '/',
                    component: resolve => require(['../pages/index/index.vue'], resolve)
                },
                {
                    path: '/evaluation',
                    component: resolve => require(['../pages/evaluation/evaluation.vue'], resolve)
                },
                {
                    path: '/evaluationResult',
                    component: resolve => require(['../pages/evaluationResult/evaluationResult.vue'], resolve)
                }
            ]
        },

    ]
})
